package com.funcourse.demo.api.restful.io.response.error;

public class CustomizedError implements BusinessError {
  private Integer errorCode;
  private String errorMsg;
  public CustomizedError(Integer errorCode,String errorMsg){
    this.errorCode =  errorCode;
    this.errorMsg = errorMsg;
  }
  @Override
  public Integer getErrorCode() {
    return this.errorCode;
  }

  @Override
  public String getErrorMessage() {
    return this.errorMsg;
  }
}
